from selenium.webdriver.common.by import By
from appium.webdriver.common.touch_action import TouchAction
import time

from ZUtils import connect_app,get_elements,input_text,is_located,get_element,handler_swipe
#连接
driver=connect_app()
#打开作业帮页面
driver.start_activity('com.baidu.homework','activity.index.IndexActivity')
#打开我的
time.sleep(20)
lx=is_located(driver,By.XPATH,'//*[@text="练习"]')